package com.cl.ks.service;

import com.alibaba.fastjson.JSONObject;

/**
 * @author chenyitao
 * @date 2021/3/5
 */
public class BaseManagerService {
    public static JSONObject createMessage(boolean status, String message) {
        JSONObject result = new JSONObject();
        result.put("status", status);
        result.put("message", message);
        return result;
    }
    public static JSONObject createResult(boolean status, String message, Object obj) {
        JSONObject result = new JSONObject();
        result.put("status", status);
        result.put("message", message);
        result.put("data", obj);
        return result;
    }
}
